$('#dialog_preview').html('<%= escape_javascript(@preview_html) %>');
$('#preview_form').html('<%= escape_javascript(render("preview_form")) %>');